import requests, json
import pandas as pd

def tianqi(key,city,extensions):
    url='https://restapi.amap.com/v3/weather/weatherInfo?parameters'
    params={
        'key':key,
        "city":city,
        "extensions":extensions
    }
    response=requests.get(url,params)
    results=response.json()
    return results